#!/bin/bash


#通过IP存活判断AGV是否启动

IP_ADDRESS="192.168.1.102"

if ping ${IP_ADDRESS} -c 3 &> /dev/null
then
    echo "0: AGV is ready"
else
    echo "-1: AGV ${IP_ADDRESS} is not open"
fi
